﻿CREATE TABLE [dbo].[DefinedMeetingPeriods] (
    [MeetingPeriodName]   NVARCHAR (100) NOT NULL,
    [InstitutionEntityID] INT            CONSTRAINT [DF_DefinedMeetingPeriods_EntityID] DEFAULT ((0)) NOT NULL,
    CONSTRAINT [PK_DefinedMeetingPeriods] PRIMARY KEY CLUSTERED ([MeetingPeriodName] ASC, [InstitutionEntityID] ASC),
    CONSTRAINT [FK_DefinedMeetingPeriods_Entity] FOREIGN KEY ([InstitutionEntityID]) REFERENCES [dbo].[Entities] ([EntityID])
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Can be 0 (not Null since it is part of the Key) to be used universally, or it can have an EntityID to connect this to a particular school', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DefinedMeetingPeriods';

